﻿using System;
using Gtk;

namespace PingPong.Editor
{

	public class CodeHelperNode : TreeNode
	{
		#region Properties

		/// <summary>
		/// Gets the code component.
		/// </summary>
		/// <value>The code component.</value>
		[TreeNodeValue(Column = 0)]
		public string CodeComponent { get; private set;}

		/// <summary>
		/// Gets the type of the component.
		/// </summary>
		/// <value>The type of the component.</value>
		[TreeNodeValue(Column = 1)]
		public string ComponentType { get; private set;}

		#endregion

		#region Constructor

		/// <summary>
		/// Initializes a new instance of the <see cref="PingPong.Editor.CodeHelperNode"/> class.
		/// </summary>
		/// <param name="component">Component.</param>
		public CodeHelperNode(string component, string componentType)
		{
			this.CodeComponent = component;
			this.ComponentType = componentType;
		}

		#endregion
	}
}

